<template>
  <div class="page">
      <button @click="alert">显示自定义对话框</button>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  methods: {
      alert () {
          this.$rxMsgbox({
              title: '测试测试',
              text: '<div>测试</div><div>测试</div><div>测试</div><div>测试</div><div>测试</div><div>测试</div>',
              showClose: true,
              btnLeft: true,
              btns: [
                  {
                      text: '确定',
                      confirm: true,
                  },
                  {text: '离开'}
              ]
          }).then(res => {
              console.log(res); // true: 确认， false: 取消
          })
      }
  }
}
</script>

<style>
</style>
